﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MDMAPI.Models;

namespace MDMAPI.Service
{
    public interface IUserInfoService
    {
        /// <summary>
        /// 查询所有用户
        /// </summary>
        /// <returns></returns>
        IEnumerable<UserInfo> GetListAll();

        /// <summary>
        /// 根据电话查询
        /// </summary>
        /// <param name="mobile"></param>
        /// <returns></returns>    
        UserInfo GetUserInfoByMobile(string mobile);

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="contact"></param>
        /// <returns></returns>
        UserInfo Add(UserInfo userInfo);


        /// <summary>
        /// 根据ID删除
        /// </summary>
        /// <param name="mobile"></param>
        void Remove(string mobile);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="contact"></param>
        /// <returns></returns>
        bool Update(UserInfo userInfo);
    }
}
